package com.ruoyi.production.mapper;

import java.util.List;
import com.ruoyi.production.domain.ProductionWorkOrder;
import com.ruoyi.production.domain.vo.ProductionWorkOrderAndPlanVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * 生产工单Mapper接口
 *
 * @author jgb
 * @date 2024-10-30
 */
@Mapper
public interface ProductionWorkOrderMapper
{
    /**
     * 查询生产工单获取详情
     *
     * @param id 生产工单id
     * @return 生产工单
     */
    public ProductionWorkOrderAndPlanVo selectProductionWorkOrderVoById(Long id);


    /**
     * 查询生产工单
     *
     * @param productionWorkOrderAndPlanVo 生产工单vo
     * @return 生产工单
     */
    public List<ProductionWorkOrderAndPlanVo> selectProductionWorkOrderAndPlan(ProductionWorkOrderAndPlanVo productionWorkOrderAndPlanVo);

    /**
     * 查询生产工单
     *
     * @param id 生产工单主键
     * @return 生产工单
     */
    public ProductionWorkOrder selectProductionWorkOrderById(Long id);

    /**
     * 查询生产工单列表
     *
     * @param productionWorkOrder 生产工单
     * @return 生产工单集合
     */
    public List<ProductionWorkOrder> selectProductionWorkOrderList(ProductionWorkOrder productionWorkOrder);

    /**
     * 新增生产工单
     *
     * @param productionWorkOrder 生产工单
     * @return 结果
     */
    public int insertProductionWorkOrder(ProductionWorkOrder productionWorkOrder);

    /**
     * 修改生产工单
     *
     * @param productionWorkOrder 生产工单
     * @return 结果
     */
    public int updateProductionWorkOrder(ProductionWorkOrder productionWorkOrder);

    /**
     * 删除生产工单
     *
     * @param id 生产工单主键
     * @return 结果
     */
    public int deleteProductionWorkOrderById(Long id);

    /**
     * 批量删除生产工单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProductionWorkOrderByIds(Long[] ids);
}
